<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div class="ch-container">

<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-content">
                <form class="form-inline" role="form" id="ticket-form">
                    <div class="form-group col-md-2">
                        <label>商品名称：</label>
                        <input name="name" type="text" class="form-control">
                    </div>
                    <div class="form-group col-md-3">
                        <label>所在景区：</label>
                        <input name="name" type="text" class="form-control">
                        <a href="javascript:;" class="btn btn-default">选择</a>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group col-md-3">
                        <label>展示图片：</label>
                        <span class="btn btn-success fileinput-button">
					        <i class="glyphicon glyphicon-plus"></i>
					        <span>添加图片...</span>
					        <!-- The file input field used as target for the file upload widget -->
					        <input id="ticket-img-upload" type="file" name="file" multiple>
					    </span>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group col-md-12">
                       <ul class="thumbnails gallery">
                       </ul> 
                    </div>
                    <div class="form-group col-md-2">
                        <label>商品进价：</label>
                        <input type="text" class="form-control">元
                    </div>
                    <div class="form-group col-md-2">
                        <label>市场价：</label>
                        <input type="text" class="form-control">元
                    </div>
                    <div class="form-group col-md-2">
                        <label>库存数量：</label>
                        <input type="text" class="form-control">
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group col-md-4">
	                    <label>有效时间：</label>
	                    <input name="open_time" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"/>
	                    <label>至</label>
	                    <input name="close_time" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"/>
	                </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group col-md-4">
                        <label>状态：</label>
                       	<label class="radio-inline">
		                    <input type="radio" name="isOK" value="1" checked="checked">启用
		                </label>
		                <label class="radio-inline">
		                    <input type="radio" name="isOK" value="0">禁用
		                </label>
                    </div>
                    <div class="form-group">
                        <a href="javascript:;" class="btn btn-default" onclick="setRelatedTicket();">设置关联票品</a>
                        <a href="javascript:;" class="btn btn-default" onclick="setRelatedProduct();">设置关联旅游产品</a>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>票品介绍：</label>
                        <!-- 加载编辑器的容器 -->
						<script id="desc_editor" name="traffic" type="text/plain"></script>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>订购须知：</label>
                        <!-- 加载编辑器的容器 -->
						<script id="buynote_editor" name="prompt" type="text/plain"></script>
                    </div>
                    <div class="clearfix"></div><br>
                    <button type="button" class="btn btn-default" id="savebtn">保存</button>
                </form>

            </div>
        </div>
    </div>
    <!--/span-->

</div><!--/row-->
</div>

<jsp:include page="dialog.jsp?from=ticket"/>